package cn.iocoder.yudao.module.agent.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 代理人 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AgentUserBaseVO {

    @Schema(description = "会员编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24870")
    @NotNull(message = "会员编号不能为空")
    private Long userId;

    @Schema(description = "分用比例 百分比", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "分用比例 百分比不能为空")
    private Integer brokerageRate;

    @Schema(description = "是否可用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否可用不能为空")
    private Boolean enabled;

    @Schema(description = "可用佣金", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "可用佣金不能为空")
    private Integer brokerage;

    @Schema(description = "冻结中佣金", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "冻结中佣金不能为空")
    private Integer frozenBrokerage;

    @Schema(description = "已提现佣金", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "已提现佣金不能为空")
    private Integer withdrawBrokerage;

    @Schema(description = "提现账户", requiredMode = Schema.RequiredMode.REQUIRED, example = "14270")
    @NotNull(message = "提现账户不能为空")
    private Long withdrawId;

}
